package com.icss.clothes.service.imp;

import com.icss.clothes.entity.Size;
import com.icss.clothes.mapper.SizeMapper;
import com.icss.clothes.service.ISizeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SizeService implements ISizeService {
    @Autowired
    private SizeMapper sizeMapper;
    @Override
    public List<Size> findAllSizeByC_id(int c_id) {
        //从数据库中通过指定的商品编号获取得到所有商品的商品型号

        return sizeMapper.selectAllSizeByC_id(c_id);
    }
}
